import React, { Component } from "react";
import { Tabs, Pagination } from "antd";
import moment from "moment";
import { playlistDetail, hotComments, newComments } from "../../api/playlist";
import { formatDuration } from "../../utils/format";
import bus from "../../utils/bus";
const { TabPane } = Tabs;
export default class Playlist extends Component {
  constructor() {
    super();

    this.state = {
      activeIndex: "1",
      tableData: [],
      title: "",
      avatarUrl: "",
      coverImgUrl: "",
      signature: "",
      nickname: "",
      tags: [],
      createTime: "",
      // 热门评论
      hotComments: [],
      // 最新评论
      newComments: [],
      // 分页相关数据
      // 最新评论每页数据
      limit: 5,
      // 页码
      page: 1,
      // 热门评论总条数
      hotCommentTotal: 0,
      // 最新评论总条数
      newCommentTotal: 0,
    };
  }
  componentDidMount() {
    this.loadData();
  }
  render() {
    return <div>最新音乐详情页</div>;
  }
}
